package cn.lovelysia.ymcc.feignclient;


import cn.lovelysia.ymcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UaaFeignCallBack implements FallbackFactory<IUaaFeignClient> {

    @Override
    public IUaaFeignClient create(Throwable throwable) {
        return login -> JSONResult.success(-1L,"");
    }
}
